<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Confirm</title>
    <style>
        #pageHeight{
          height:1300px
        }
        body {
                background-color: #1234db;
                color: white;
                font-family: Arial, sans-serif;
                margin: 0;
                padding: 20px;
                line-height: 1.6;
            }
    </style>
</head>
<body>
<div id="container" onclick="confirmTest()">Confirm</div>
<div id="result"></div>
<div id="pageHeight"></div>
<script>
    function confirmTest(){
        var result = confirm('confirm test')
        document.getElementById("result").innerHTML=result;
        return result;
    }
</script>
</body>
</html>